<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">

	<title>
	<?php if ( is_home() ) { ?>
		<?php bloginfo('description'); ?> <?php bloginfo('name'); ?>
	<?php } else { ?>
		<?php wp_title(''); ?> - <?php bloginfo('name'); ?>
	<?php } ?>
	</title>
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

	<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.pack.js?<?php echo time(); ?>"></script>
	<?php
		if ( get_option('flickr') )
			wp_enqueue_script( 'gallery', get_bloginfo('template_directory').'/simplegallery.js', array( 'jquery' ) );

		if ( is_singular() )
			wp_enqueue_script( 'comment-reply' );
	?>

<?php wp_head(); ?>
<?php if ( get_bloginfo('language') == 'zh' ) { ?>
<style type="text/css">
.entry-content { font-size: 1.5em;color:#777; font-family: georgia, arial;}
.wp-caption p.wp-caption-text {font-size: 1em;}
</style>
<?php } ?>

</head>
<body>
<div id="page" class="hfeed">
	<div id="skip"><a title="Skip to content" href="#content" accesskey="S">Skip to Content &darr;</a></div>

<div id="container">
	<div id="rotating">
		<div id="gradient">
		<div id="branding">
			<?php if (is_home()) { ?>
			<h1 class="homelink"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
			<p class="description"><?php bloginfo('description'); ?></p>
			<?php } else { ?>	
			<div class="homelink"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></div>
			<p class="description"><?php bloginfo('description'); ?></p>
			<?php } ?>
		</div>

			<div id="note">
				<?php if ( !get_option('flickr') ) { ?>
					<img src="<?php header_image()?>" />
				<?php } else { ?>
				<div id="simplegallery"></div>
				<?php }?>
			</div>
		</div>
	</div>